package com.sbj.controller;

import com.sbj.dto.req.LogisticsReq;
import com.sbj.service.LogisticsService;
import com.zmh.framework.util.Result;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;



/**
 * @author summer
 * @version 1.0
 * @date 2024/8/30 22:43
 */
@RestController
@RequestMapping(value = "/logistics")
@AllArgsConstructor
public class LogisticsController {

    private final LogisticsService logisticsService;

    @PostMapping(value = "/saveLogistics")
    public Result<String> saveLogistics(@RequestBody LogisticsReq logisticsReq){
        logisticsService.saveLogistics(logisticsReq);
        return Result.successResult();
    }
}
